/*
 * OutputFStream.h
 *
 *  Created on: 11/06/2013
 *      Author: juan
 */

#ifndef OUTPUTFSTREAM_H_
#define OUTPUTFSTREAM_H_
#include <fstream>

using namespace std;

class OutputFStream : public ofstream{
public:
	OutputFStream();
	virtual ~OutputFStream();
	bool escribirBit(int i);
	int cuantosBitsFaltan();

private:
	int indice;
	int byte;
	string buffer;
};

#endif /* OUTPUTFSTREAM_H_ */
